package com.ldx.blog.sevice;

import com.ldx.blog.common.exception.BlogException;
import com.ldx.blog.pojo.request.AddBlogRequest;
import com.ldx.blog.pojo.request.UpdateBlogRequest;
import com.ldx.blog.pojo.response.BlogInfoResponse;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    Boolean add(AddBlogRequest addBlogRequest) throws BlogException;

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest) throws BlogException;

    Boolean deleteBlog(Integer blogId) throws BlogException;
}
